<?php
/**
 *
 * @author Rodrigo Régis Palmeira <regisbsb@gmail.com>
 *
 */
namespace Foxforms\Widget;
class Form extends \Foxforms\Element
{
	protected $action;
	protected $method	= 'post';
	protected $enctype;
	protected $target;

	public function __construct()
	{
		return $this;
	}

	/**
	 * Set the action of a form
	 * @param string $action
	 * @return FoxFormForms
	 */
	public function setAction($action)
	{
		$this->action = $action;
		return $this;
	}

	/**
	 * Set the method of a form
	 * default value = post
	 * @param string $method
	 * @return FoxFormForms
	 */
	public function setMethod(string $method)
	{
		$this->method = $method;
		return $this;
	}

	/**
	 * Set the enctype of a form
	 * @param string $enctype
	 * @return FoxFormForms
	 */
	public function setEnctype(string $enctype)
	{
		$this->enctype = $enctype;
		return $this;
	}

	/**
	 * Set the target of a form
	 * @param string $target
	 * @return FoxFormForms
	 */
	public function setTarget(string $target)
	{
		$this->target = $target;
		return $this;
	}
}